package com.cy.device;

import com.cy.swpc.common.domain.utils.SystemTool;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import javax.swing.*;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class CyCabinetAdapterApplication {

    public static void main(String[] args) {
        if (SystemTool.isStartByJavaw()) {
            JOptionPane.showMessageDialog(null, "推荐使用bat脚本启动");
            return;
        }
        String[] newArgs = SystemTool.AddCommandLineProperties(args, "--spring.application.name=service-cy-cabinet-adapter");
        SpringApplication.run(CyCabinetAdapterApplication.class, newArgs);
    }

}
